|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpraktikum3.Kaart
public class Kaart
Mängukaardi klass.
| Field Summary | |
|---|---|
private int |
mast
Väärtuseks 1, 2, 3 või 4 (tähistavad vastavalt: ÄRTU, RUUTU, RISTI, POTI) |
static int |
POTI
|
static int |
RISTI
|
static int |
RUUTU
|
private int |
suurus
Väärtuseks 2 või 3 või ... või 14 (11, 12, 13, 14 tähistavad vastavalt: SOLDAT, EMAND, KUNINGAS, ÄSS) |
static int |
ÄRTU
|
| Constructor Summary | |
|---|---|
Kaart()
Juhukaart. |
|
Kaart(int m,
int s)
Määratud kaart. |
|
| Method Summary | |
|---|---|
int |
mast()
Piilumeetod. |
int |
suurus()
Piilumeetod. |
String |
toString()
Isendi sõnekuju. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ÄRTU
public static final int RUUTU
public static final int RISTI
public static final int POTI
private int mast
private int suurus
| Constructor Detail |
|---|
public Kaart()
public Kaart(int m,
int s)
m - masts - suurus| Method Detail |
|---|
public int mast()
public int suurus()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||